(define-module (emacs cquery)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (guix packages)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (guix git-download))

(define-public emacs-cquery
  (package
   (name "emacs-cquery")
   (version "555e50984ebda177421fdcdc8c76cb29235d9694")
   (source
    (origin
     (method git-fetch)
     (uri (git-reference
           (url "https://github.com/cquery-project/emacs-cquery.git")
           (commit version)))
     (file-name (git-file-name name version))
     (sha256
      (base32
       "1d1m1lgc93fkg7dxb8d6ch68vh6w1zp3yy31bv78vaz8siqrmk16"))))
   (build-system emacs-build-system)
   (propagated-inputs
    `(("emacs-lsp-mode" ,emacs-lsp-mode)
      ("emacs-dash" ,emacs-dash)))
   (home-page
    "https://github.com/jacobdufault/cquery")
   (synopsis "cquery client for lsp-mode")
   (description
    "To enable, call (lsp-cquery-enable) in your c++-mode hook.")
   (license license:expat)))
